package net.biz.dj.web;

import java.util.Map;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;

import net.biz.component.BaseAction;

@Path("/djs")
public class DjAction extends BaseAction {

	/**
	 * 测试页面form 
	 * 
	 * @param model
	 * @return
	 */
	@Path("/test_dj")
	@POST
	@GET
	public String toTest_dj(Map<String, Object> model) {
		try {
			// 查询
			// 1.获取Codelist
			String code1 = "DEPT_ID|TRANSFERTYPE";

			// 代码值
			String[] codes = code1.split("[|]");
			for (int i = 0; i < codes.length; i++) {
				model.put(codes[i], getCodeList(codes[i]));
			}
			return "forward:dj/view/test_dj.jsp";
		} catch (Exception e) {
			e.printStackTrace();
			return dwz.getFailedJson(e.getMessage()).toString();
		}

	}
	
	
	
}
